package com.aaa.controller.tables;

import com.aaa.entity.Brand;
import com.aaa.service.impl.BrandServiceImpl;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

@Controller
@RequestMapping("brand")
public class BrandController {
    @Resource
    BrandServiceImpl brandService;
    @RequestMapping("select")
    public Object select(){
        return brandService.select();
    }
    @RequestMapping("insert")
    public Integer insert(Brand brand){
        return brandService.insert(brand);
    }
    @RequestMapping("delete")
    public Integer delete(Integer id){
        return brandService.delete(id);
    }
    @RequestMapping("update")
    public Integer update(Brand brand){
        return brandService.update(brand);
    }
}
